﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace teach
{
    public class Question
    {
        private Dictionary<string, string> m_Properties = new Dictionary<string, string>();
        public Dictionary<string, string> Properties
        {
            get
            {
                return m_Properties;
            }
            set
            {
                m_Properties = value;
            }
        }

        protected string m_message = "Bonne chance!";

        public int Timeout { get; set; }
        public string QuestionType { get; set; }
        public string UI { get; set; }
        public virtual object Answer { get; set; }
        public string Message { get { return m_message; } }

        public virtual void GenerateValues(Preference pref)
        {
        }

        public virtual bool CheckAnswer(object userAnswer)
        {
            return userAnswer == Answer;
        }

        public virtual bool IsRevisable()
        {
            return true;
        }

    }
}
